<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"  
	xmlns:ui="http://java.sun.com/jsf/facelets" 
      xmlns:h="http://java.sun.com/jsf/html"
       xmlns:f="http://java.sun.com/jsf/core"
      >

<head>

</head>
<body>
<ui:composition template="/templates/template.xhtml">
	

	<ui:define name="contenu">
	
			<f:view>  
			    <b>Vos commandes :</b> 
			 <br/><br/>
			  	
			      <h:dataTable value="#{controllerBeanJsf.orders}" var="o" border="0">
					<h:column>
						N° Commande : <h:outputText value="#{o.id}"/> du : <h:outputText value="#{o.date}">
																<f:convertDateTime pattern="d-M-yyyy" /></h:outputText>
						<br/> 
															
					<h:dataTable value="#{o.orderLines}" var="ol" border="1">
						<h:column>
							Titre du concert : <h:outputText value="#{ol.item}"/>		
						</h:column>
						<h:column>
							Nombre de place : <h:outputText value="#{ol.quantity}"/>			
						</h:column>
						<h:column>
							Prix : <h:outputText value="#{ol.unitprice}"/>euros			
						</h:column>				
					</h:dataTable>						
			     </h:column>			    
				</h:dataTable>
			  
			   
			  <br/> 
			  <h:form>
			 
			  	
			  </h:form>  
			  <!-- <h:selecteBooleanCheckbox value="a" /><h:outputLabel value="J'accèpte les conditions de vente" /> -->
			 <br/><br/>
			</f:view>


	
	
	</ui:define>
	
</ui:composition>

</body>
</html>